FROM lizhi1803001230/hadoop:v2.10.1_0

ARG hive_uid=bigdata02

COPY apache-hive-2.3.9-bin /opt/apache-hive-2.3.9-bin
COPY entrypoint.sh /opt/entrypoint.sh
RUN ln -s /opt/apache-hive-2.3.9-bin /opt/hive &&  useradd -ms /bin/bash ${hive_uid} 
ENV HIVE_HOME=/opt/hive
ENV PATH=$HIVE_HOME/bin:$PATH


ENTRYPOINT [ "/opt/entrypoint.sh" ]

USER ${hive_uid}
